<?php $linkAdd = $this->baseUrl( '/admin/nguoidung/them');?>
<div><a href="<?php echo $linkAdd ?>" title="Add">Thêm mới người dùng</a></div>
<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-check"><a id="toggle-all" ></a> </th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên người dùng</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Email</a></th>
					<th class="table-header-repeat line-left"><a href="">Tên đăng nhập</a></th>
					<th class="table-header-repeat line-left"><a href="">Khóa</a></th>
					<th class="table-header-repeat line-left"><a href="">Quyền hạn</a></th>
					<th class="table-header-options line-left"><a href="">Tùy chọn</a></th>
				</tr>
				
				
<?php
	foreach($this->nguoidung as $nguoidung)
	{
		$id = $nguoidung->getId();
		$tennd = $nguoidung->getTennd();
		$email = $nguoidung->getEmail();
		$tendn = $nguoidung->getTendangnhap();
		$khoa = $nguoidung->khoaList();
		$quyen = $nguoidung->getQuyenhan();
		$linkEdit = $this->baseUrl('/admin/nguoidung/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/nguoidung/xoa/id/'. $id);
?>
	<tr>
					<td><input  type="checkbox"/></td>
					<td><?php echo $tennd?></td>
					<td><?php echo $email?></td>
					<td><a href=""><?php echo $tendn?></a></td>
					<td><?php echo $khoa?></td>
					<td><a href=""><?php echo $quyen?></a></td>
					<td class="options-width">
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip"></a>
					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>
					</td>
				</tr>
<?php
			
	} 
?>
			</table>
				<!--  end product-table................................... -->
				</form>
